//
// Created by Yang on 2023/5/28.
//
#include "common.h"

void showMainMenu(){
    putenv("TERM=xterm-color");
    system("clear"); // macos 清屏命令

    cout << "____________________________________________" << endl;
    cout << "|==============  欢迎使用小谷记账 ============|" << endl;
    cout << "|                                          ｜" << endl;
    cout << "|================= 1. 记 账 ================|" << endl;
    cout << "|================= 2. 查 询 ================|" << endl;
    cout << "|================= 3. 退 出 ================|" << endl;
    cout << "|___________________________________________|" << endl;

    cout << "\n请选择(1-3):" << endl;
}

void showAccountingMenu(){
    cout << "________________________________________________" << endl;
    cout << "|================  选择记账种类     =============|" << endl;
    cout << "|                                              ｜" << endl;
    cout << "|================= 1. 收 入     ================|" << endl;
    cout << "|================= 2. 支 出     ================|" << endl;
    cout << "|================= 3. 返回主菜单 ================|" << endl;
    cout << "|______________________________________________|" << endl;

    cout << "\n请选择(1-3):";

}
void showQueryMenu(){
    cout << "_____________________________________________________" << endl;
    cout << "|================  选择查询类型          =============|" << endl;
    cout << "|                                                   ｜" << endl;
    cout << "|================= 1. 统计所有账目    ================|" << endl;
    cout << "|================= 2. 统 计 收 入     ================|" << endl;
    cout << "|================= 3. 统 计 支 出     ================|" << endl;
    cout << "|================= 4. 返回主菜单       ===============|" << endl;
    cout << "|___________________________________________________|" << endl;

    cout << "\n请选择(1-4):" << endl;
}
